from time import time 

def rotate1(lst):
    if not len(lst):
        return lst
    t = lst[0]
    del lst[0]
    lst.append(t)

def rotate2(lst):
    if not len(lst):
        return lst
    lst.reverse()
    t = lst.pop()
    lst.reverse()
    lst.append(t)

a = [i for i in range(1000)]
b = [i for i in range(10000)]
c = [i for i in range(100000)]
d = [i for i in range(1000000)]
e = [i for i in range(10000000)]

start = time()
[rotate1(a) for i in range(1000)]
print 'Finished a'
[rotate1(b) for i in range(10000)]
print 'Finished b'
[rotate1(c) for i in range(100000)]
print 'Finished c'
elapsed = (time() - start)

print '%s time for rotate1' % elapsed

start = time()
[rotate2(a) for i in range(1000)]
print 'Finished a'
[rotate2(b) for i in range(10000)]
print 'Finished b'
[rotate2(c) for i in range(1000000)]
print 'Finished c'

elapsed = (time() - start)

print '%s time for rotate1' % elapsed
